package com.jiukuaidao.zhulin.module.shoppingcart;

import com.jiukuaidao.library.base.IBasePresenter;
import com.jiukuaidao.library.base.IBaseView;
import com.jiukuaidao.zhulin.entity.ApiShoppingCartInfo;

/**
 * Author : BinarySatan
 * Date : 2016/6/7
 * Description :
 */
public interface ShoppingCartContract {

    interface View extends IBaseView<Presenter> {
        /**
         * 系统返回的
         */
        ApiShoppingCartInfo getShoppingCartDatas();

        /**
         * 获取起送价
         */
        String getStartPrice();

        /**
         * 购物车内总价格
         */
        String getTotalPrice();
    }

    interface Presenter extends IBasePresenter {

        /**
         * 购物车是否为空
         */
        boolean isEmpty();

        /**
         * 是否满足起送价
         */
        boolean isAreOverStartPrice();
    }
}
